﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using NUnit.Framework;
using wow_api;

namespace wow_api_tests
{
    [TestFixture]
    class ArmoryTests
    {
        [Test]
        public void TestGetCharacter()
        {
            var armory = new Armory();
            var character = armory.GetCharacter("Stormrage", "Brettadin");
            Assert.AreEqual("Brettadin", character.Name);
        }

        [Test]
        public void TestGetRealms()
        {
            var armory = new Armory();
            var realms = armory.GetRealms();
            var stormrage = realms.List.Single(r => string.Compare("Stormrage", r.Name, true) == 0);
            Assert.AreEqual("Stormrage", stormrage.Name);
        }

        [Test]
        public void TestClasses()
        {
            var armory = new Armory();
            var classes = armory.GetClasses().ClassList;
            Assert.AreEqual(11, classes.Count);
        }
    }
}
